import { getToken } from '@/utils/auth'
import request from '@/utils/request'

export function getFileInfo(fileId) {
  return request({
    url: '/file/view',
    headers: {
      isToken: false
    },
    params: {fileId: fileId, token: getToken()},
    method: 'get',
    timeout: 20000,
    responseType: 'blob'
  })
}